<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: Dashboard</div>
    <button @click="goError">路由跳转</button>
  </div>
</template>

<script>
export default {
  name: 'Dashboard',
  created () {
    console.log('首页')
  },
  methods: {
    goError() {
      this.$router.push('message')
    }
  }
}
</script>
